package com.ly.honor.mapper;

import com.ly.honor.entity.dto.PlayerHonorCreateDTO;
import com.ly.honor.entity.dto.PlayerHonorEditDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 李某人
 * @Date 2023/3/13 14:29
 * @Version 1.0
 */
@Mapper
public interface HonorPlayerMapper {
    void deletePlayerByPlayerId(@Param("playerId") long playerId);

    void deletePlayerByHonorId(@Param("honorId") long honorId);

    void removeBatchByPlayer(@Param("idList") List<Long> idList);

    void removeBatchByHonor(@Param("idList") List<Long> idList);

    List<String> getHonorByPlayer(@Param("playerId") Integer playerId);

    List<Integer> getHonorIdrByPlayer(@Param("playerId")Integer playerId);

    void insertPlayerHonorList(@Param("playerHonorDTO")PlayerHonorEditDTO playerHonorEditDTO);

    void insertPlayerHonor(@Param("playerHonorDTO")PlayerHonorCreateDTO playerHonorCreateDTO);
}
